<div class="clear:both;"></div>
</div>

<div class="tdare">
    <a class="btn1" href="index.php?app=monitor_define&amp;act=detail_add&amp;Mid={$monitor_define.Id}">{$lang.add}</a>
    <table width="100%" cellspacing="0" class="dataTable">

        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td align="left">{$lang.Name}</td>
            <td>{$lang.Url}</td>
            <td>{$lang.Interval}</td>
            <td>{$lang.Status}</td>
            <td>{$lang.Orders}</td>
            <td>{$lang.Img}</td>

            <td class="handler">{$lang.handler}</td>
        </tr>

        <!--{foreach from=$details item=detail}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$detail.Id}"/></td>
            <td>{$detail.Name|escape}</td>
            <td>{$detail.Url}</td>
            <td>{$detail.Interval}s</td>
            <td><!--{if $detail.Status}-->
                <img src="templates/style/images/monitor_enabled.png" ectype="detail_edit" fieldname="Status" fieldid="{$detail.Id}" fieldvalue="1" title="{$lang.editable}" />

                <!--{else}-->
                <img src="templates/style/images/monitor_disabled.png" ectype="detail_edit" fieldname="Status" fieldid="{$detail.Id}" fieldvalue="0" title="{$lang.editable}"/>

                <!--{/if}-->
            </td>
            <td>{$detail.Orders}</td>
            <td><img src="{$detail.Img}" width="50px" height="50px"></td>
            <td ><a href="index.php?app=monitor_define&amp;act=detail_edit&amp;id={$detail.Id}&amp;Mid={$monitor_define.Id}">{$lang.edit}</a>
                |<a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=monitor_define&amp;act=detail_drop&amp;id={$detail.Id}&amp;Mid={$monitor_define.Id}');">{$lang.drop}</a></td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $details}-->
    <div id="dataFuncs">
        <div class="pageLinks">
            {include file=page.bottom.html}
        </div>
        <div id="batchAction" class="left paddingT15">
            &nbsp;&nbsp;
            <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=monitor_define&act=detail_drop&Mid={$monitor_define.Id}" presubmit="confirm('{$lang.drop_confirm}');" />
            &nbsp;&nbsp;
            <!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
        </div>
        <div class="clear:both;"></div>
    </div>
    <div class="clear"></div>
    <!--{/if}-->
</div>

